//
//  ZYComponentLoader.h
//  DesignMode
//
//  Created by wangzhipan on 2024/11/7.
//

#import <Foundation/Foundation.h>

#import "ZYComponentRegister.h"
NS_ASSUME_NONNULL_BEGIN

@interface ZYComponentLoader : NSObject
@property (nonatomic, strong, nullable) id<IComponent>rootComponent;
- (instancetype)initWithRootView:(UIView *)rootView;
- (NSArray <id<IZYComponentRegister>> *)defaultRegisters;

- (void)doLoadAllComponent;
- (void)doUnloadAllDomponent;
@end

NS_ASSUME_NONNULL_END
